package com.fc.campusapplicationsystem.service;

import com.fc.campusapplicationsystem.mapper.FeedbackMapper;
import com.fc.campusapplicationsystem.model.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 贺哲
 * @2020-02-29 15:16
 */
@Service
public class FeedbackServiceImpl implements FeedbackService {
    @Autowired
    FeedbackMapper feedbackMapper;

    @Override
    public Integer add(Feedback feedback) {
        return feedbackMapper.insertSelective(feedback);
    }

    @Override
    public List<Feedback> list() {
        return feedbackMapper.selectAll();
    }

    @Override
    public List<Feedback> getAll() {
        return feedbackMapper.selectAll();
    }
}
